package define

import "saas-app/app/model"

// 课表请求参数
type CourseParams struct {
	SchoolId  int
	CampusId  int
	ClassId   int
	Page      int
	Limit     int
	StartTime int
	EndTime   int
}

type PaikeParam struct {
	SchoolID    int    `json:"school_id"`
	CampusID    int    `json:"campus_id"`
	ClassID     uint   `json:"class_id"`
	ClassroomID uint   `json:"classroom_id"`
	TeacherID   uint   `json:"teacher_id"`
	SubjectID   uint   `json:"subject_id"`
	Len         uint   `json:"len"`
	StartTime   uint   `json:"start_time"`
	Type        uint   `json:"type"`
	Note        string `json:"note"` // 时长
	Conflict    string `json:"conflict"`
}

// 检查校区
type CheckCampusAuth struct {
	SchoolId int `v:"required#学校不能为空"`
	CampusId int `v:"required#校区不能为空"`
}

type CourseList struct {
	model.Course
	SubjectName   string `json:"subject_name"`
	ClassName     string `json:"class_name"`
	TeacherName   string `json:"teacher_name"`
	ClassroomName string `json:"classroom_name"`
	Status        uint   `json:"status"` // 1 未上课 2 上课中 3已下课
}
